import request from "../utils/request";

const prefix = '/universal-service/groups'

export function listGroups(id) {
    return request({
        url: prefix + '/list/' + id,
        method: 'get'
    })
}
export function saveGroup(group){
    return request({
        url: prefix+'/save',
        method: 'post',
        data:group
    })
}

export function deleteGroup(id){
    return request({
        url: prefix + '/delete/'+id,
        method: 'post',
    })
}
